<template>
  <div class="weekendRecommend">
    <div class="title">周末去哪儿</div>
    <ul>
      <li class="item border-bottom" v-for="item in weekendList" :key="item.id">
        <div class="img-wrapper">
          <img :src="item.imgUrl" alt="" class="item-img">
        </div>
        <div class="info">
          <div class="item-title">{{item.title}}</div>
          <div class="item-desc">{{item.desc}}</div>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'weekendRecommend',
  props: {
    weekendList: Array
  }
}
</script>

<style lang="stylus" scoped>
@import '~css/mixins.styl'
.weekendRecommend
  margin-top .4rem 
  .title
    font-size .4rem
    line-height .8rem
    background #eee
    text-indent .2rem
  ul
    background #fff
    .item
      overflow hidden
      display flex
      // height 1.9rem
      margin-bottom 0.1rem
      flex-direction column
      .item-img
        width 100%
        height 100%
      .info
        font-size .28rem
        width 100%
        padding .2rem
        .item-title
          padding-top .1rem
          box-sizing border-box
          font-size .32rem
          font-style bold
        .item-desc
          margin-top .2rem  
          color #ccc
          ellipsis()
        .item-price
          width 100%
          margin-top .3rem
          font-size .4rem
          color #ff8300  
          display flex
          justify-content space-between
</style>